package com.example.cassandra_demo.repository;

import com.example.cassandra_demo.model.Hotel;

import java.util.List;
import java.util.UUID;

/**
 * @Author: Crystal
 * @Date: 2019/1/22 12:16
 **/
public interface HotelRepository {
    Hotel save(Hotel hotel);
    Hotel update(Hotel hotel);
    Hotel findOne(UUID hotelId);
    void delete(UUID hotelId);
    List<Hotel> findByState(String state);
}
